package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.StockLtFootman;
import com.ruoyi.system.mapper.StockLtFootmanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IStockLtFootmanService;

/**
 * 龙头小弟库Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Service
public class StockLtFootmanServiceImpl implements IStockLtFootmanService 
{
    @Autowired
    private StockLtFootmanMapper stockLtFootmanMapper;

    /**
     * 查询龙头小弟库
     * 
     * @param recordId 龙头小弟库主键
     * @return 龙头小弟库
     */
    @Override
    public StockLtFootman selectStockLtFootmanByRecordId(Long recordId)
    {
        return stockLtFootmanMapper.selectStockLtFootmanByRecordId(recordId);
    }

    /**
     * 查询龙头小弟库列表
     * 
     * @param stockLtFootman 龙头小弟库
     * @return 龙头小弟库
     */
    @Override
    public List<StockLtFootman> selectStockLtFootmanList(StockLtFootman stockLtFootman)
    {
        return stockLtFootmanMapper.selectStockLtFootmanList(stockLtFootman);
    }

    /**
     * 新增龙头小弟库
     * 
     * @param stockLtFootman 龙头小弟库
     * @return 结果
     */
    @Override
    public int insertStockLtFootman(StockLtFootman stockLtFootman)
    {
        return stockLtFootmanMapper.insertStockLtFootman(stockLtFootman);
    }

    /**
     * 修改龙头小弟库
     * 
     * @param stockLtFootman 龙头小弟库
     * @return 结果
     */
    @Override
    public int updateStockLtFootman(StockLtFootman stockLtFootman)
    {
        return stockLtFootmanMapper.updateStockLtFootman(stockLtFootman);
    }

    /**
     * 批量删除龙头小弟库
     * 
     * @param recordIds 需要删除的龙头小弟库主键
     * @return 结果
     */
    @Override
    public int deleteStockLtFootmanByRecordIds(Long[] recordIds)
    {
        return stockLtFootmanMapper.deleteStockLtFootmanByRecordIds(recordIds);
    }

    /**
     * 删除龙头小弟库信息
     * 
     * @param recordId 龙头小弟库主键
     * @return 结果
     */
    @Override
    public int deleteStockLtFootmanByRecordId(Long recordId)
    {
        return stockLtFootmanMapper.deleteStockLtFootmanByRecordId(recordId);
    }
}
